import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
	// mode: 'history',
	mode: 'hash',
	routes: [{
			path: '/',
			redirect: '/index'
		},
		{
			path: '/index',
			component: resolve => require(['../components/page/index.vue'], resolve)
		},
		{
			path: '/login',
			component: resolve => require(['../components/page/login.vue'], resolve)
		}
	]
})
